def is_number(s):
    """copy from basic/_7_input_while.py"""
    try:
        float(s)
        return True
    except ValueError:
        pass

    try:
        import unicodedata
        unicodedata.numeric(s)
        return True
    except (TypeError, ValueError):
        pass

    return False


if __name__ == '__main__':
    print('以下内容不会在作为模块导入时运行')
